<?php
class komunitas {
	var $IDKomunitas = null;
	var $NamaKomunitas = null;
	var $InfoKomunitas = null;
	var $Lokasi = null;
	var $Alamat = null;
	var $JamBuka = null;
	var $JamTutup = null;
	var $ProfPict = null;
	var $status = 0;
	
	//constructor
	function komunitas(){
		$this->connect();
	}
	// connect ke database WEPO-PKL
	function connect(){
		mysql_connect('localhost','root','');
		mysql_select_db('WEPO-PKL');
	}
	//menambahkan list baru
	function insert(){
		mysql_query('insert into profilKomunitas ('IDKomunitas','NamaKomunitas','InfoKomunitas','Lokasi','Alamat','JamBuka','JamTutup','ProfPict') 
		values ("'.$this->IDKomunitas.'", "'.$this->NamaKomunitas.'", "'.$this->InfoKomunitas.'", "'.$this->Lokasi.'", "'.$this->Alamat.'", 
		"'.$this->JamBuka.'", "'.$this->JamTutup.'", "'.$this->ProfPict'")');
	}
}
?>